climb out of a hole

Translations
выбраться из ямы
It took him a long time to climb out of the hole he had dug for himself.
Ему потребовалось много времени, чтобы выбраться из ямы, которую он выкопал для себя.
Definitions
To recover from a difficult situation, setback, or disadvantage; to improve one's circumstances after experiencing problems or challenges.